import com.kila.spring.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {



    public static void main(String args[]){
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        Student st = (Student)context.getBean("stu");

        System.out.println(st.toString());
        st.setName("wangwu");
        System.out.println(st.toString());
    }

}
